/**
 * CS543 HW4 Joseph Meyer
 */
package edu.src.paging;

/**
 * 
 * The valid –invalid bit scheme described in Section 8.5.3 can be used for this
	purpose. This time, however, when this bit is set to “valid,” the associated page
	is both legal and in memory. If the bit is set to “invalid,” the page either is not
	valid (that is, not in the logical address space of the process) or is valid but
	is currently on the disk. The page-table entry for a page that is brought into
	memory is set as usual, but the page-table entry for a page that is not currently
	in memory is either simply marked invalid or contains the address of the page
	on disk.
	-pg402
 * @author meyer
 *
 */
public enum PageBit {
	VALID,
	INVALID;
	
	public static PageBit parse (String pageBit) {
		if (pageBit.equalsIgnoreCase("i") || pageBit.equalsIgnoreCase("invalid")) {
			return INVALID;
		}
		return VALID;
	}

}
